package com.zx._01_基础._020_spi;

import java.util.ServiceLoader;

public class JdkSpiDemo {

    public static void main(String[] args) {
        ServiceLoader<Robot> loader = ServiceLoader.load(Robot.class);
        for (Robot robot : loader) {
            robot.say();
        }
    }
}
